home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 138
/
Volume 138 Aug 19 2011 - Damaged.iso
/
Games
/
juicy_lucy.swf
/
scripts
/
frame_3
/
PlaceObject2_254_1117
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
Wrap
Text File
|
2011-08-19
|
412b
|
20 lines
onClipEvent(enterFrame){
if(!_root.hold)
{
if(Key.isDown(37) && this._x > 200)
{
this._x -= _root.speed * 2 - 5;
this.gotoAndStop("left");
}
else if(Key.isDown(39) && this._x < 600)
{
this._x += _root.speed * 2 - 5;
this.gotoAndStop("right");
}
else
{
this.gotoAndStop("still");
}
}
}